@Echo Off
set CGO_ENABLED=0
set GOOS=linux
set GOARCH=amd64
Echo now the CGO_ENABLED: 
go env CGO_ENABLED
Echo now the GOOS:
go env GOOS
Echo now the GOARCH: 
go env GOARCH
Echo Please choose Y to continue or Other to exit
Echo.
Set /p var=Please choose:
IF /i %var%==Y (go build main.go) else (Exit)
Pause

go env CGO_ENABLED
go env GOOS
go env GOARCH